﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AjaxSnippets.Design;

namespace AjaxSnippets
{
    /// <summary>
    /// Required for snippet callbacks, one of these should be added to the snippet
    /// in order to include the client-side SnippetManager component
    /// </summary>
    [Designer(typeof(SnippetManagerDesigner))]
    public class SnippetManager : ScriptControl
    {
        protected override IEnumerable<ScriptDescriptor> GetScriptDescriptors()
        {
            return null;

        }

        protected override IEnumerable<ScriptReference> GetScriptReferences()
        {
            yield return new ScriptReference("AjaxSnippets.SnippetManager.js", this.GetType().Assembly.FullName);
        }
    }
}
